home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / c-runtime / tests / 20Nov91.perf < prev    next >
Encoding:
Text File  |  1991-11-20  |  1.8 KB  |  70 lines

  1. *    gcc2: -fno-function-cse -fomit-frame-pointer -O2
  2.  
  3.  
  4. for( i = 0; i < ITERATIONS; ++i )
  5.   [[ Object new ] free ];
  6. 1000000 iterations, 77 sec (12987.012987/sec)
  7.  
  8. for( i = 0; i < ITERATIONS; ++i )
  9.   [[ SubClass2 new ] free ];
  10. (super class must be searched for +new)
  11. 1000000 iterations, 87 sec (11494.252874/sec)
  12.  
  13. for( i = 0; i < ITERATIONS; ++i )
  14.   [[ SubClass2 newOther ] free ];
  15. (+newOther calls +new in its super class)
  16. 1000000 iterations, 103 sec (9708.737864/sec)
  17.  
  18. aObj = [ Object new ];
  19. for( i = 0; i < ITERATIONS; ++i )
  20.   [ aObj self ];
  21. 1000000 iterations, 12 sec (83333.333333/sec)
  22.  
  23. aObj = [ SubClass3 new ];
  24. for( i = 0; i < ITERATIONS; ++i )
  25.   [ aObj self ];
  26. (-self is implemented two classes up)
  27. 1000000 iterations, 11 sec (90909.090909/sec)
  28.  
  29. aObj = [ SubClass3 new ];
  30. for( i = 0; i < ITERATIONS; ++i )
  31.   [[ aObj self ] self ];
  32. 1000000 iterations, 23 sec (43478.26087/sec)
  33.  
  34.  
  35.  
  36. *    gcc2: -fno-function-cse -fomit-frame-pointer -O2
  37. *    Changed hashValue() in hash.c to an inline.
  38.  
  39.  
  40. for( i = 0; i < ITERATIONS; ++i )
  41.   [[ Object new ] free ];
  42. 1000000 iterations, 76 sec (13157.894737/sec)
  43.  
  44. for( i = 0; i < ITERATIONS; ++i )
  45.   [[ SubClass2 new ] free ];
  46. (super class must be searched for +new)
  47. 1000000 iterations, 86 sec (11627.906977/sec)
  48.  
  49. for( i = 0; i < ITERATIONS; ++i )
  50.   [[ SubClass2 newOther ] free ];
  51. (+newOther calls +new in its super class)
  52. 1000000 iterations, 102 sec (9803.921569/sec)
  53.  
  54. aObj = [ Object new ];
  55. for( i = 0; i < ITERATIONS; ++i )
  56.   [ aObj self ];
  57. 1000000 iterations, 11 sec (90909.090909/sec)
  58.  
  59. aObj = [ SubClass3 new ];
  60. for( i = 0; i < ITERATIONS; ++i )
  61.   [ aObj self ];
  62. (-self is implemented two classes up)
  63. 1000000 iterations, 10 sec (100000/sec)
  64.  
  65. aObj = [ SubClass3 new ];
  66. for( i = 0; i < ITERATIONS; ++i )
  67.   [[ aObj self ] self ];
  68. 1000000 iterations, 21 sec (47619.047619/sec)
  69.  
  70.